package HLLib.base;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;

public class HLSize extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_BASE, HLClassManager_H.LIB_CLASS_BASE_Size);
    }

    public int GetInt(int index) {
        switch (index) {
        case 0: {
            return width;
        }
        case 1: {
            return height;
        }
        }
        return 0;
    }

    public void SetInt(int index, int value) {
        switch (index) {
        case 0: {
            width = value;
            return;
        }
        case 1: {
            height = value;
            return;
        }
        }
    }

    public int width;

    public int height;
}
